<?php
class table_mapService {
	//
	private static $ins=null;
	protected $data=array();
	//调用方法 table_mapService::getIns();
	final protected function __construct(){
		$conf=Conf::getIns();
		$cfg=$conf->load_config('DB');
		$table_map=array(
			'admin',
			'arc',
			'arc_data',
			'arc_err',
			'attrtaglist',
			'category',
			'comment',
			'comment_stat',
			'favorite',
			'flink',
			'front_admin',
			'front_group',
			'group',
			'guestbook',
			'index_1',
			'module',
			'setting',
			'uplog',
		);
		foreach($table_map as $v){
			$this->data[$v]=$cfg['prefix'].$v;
		}
		//例外的
		
	}
	final protected function __clone(){
    }
	public static function getIns(){
        if(!(self::$ins instanceof self)) {
            self::$ins=new self();
        }
        return self::$ins;
    }
	public function __get($key){
        if(array_key_exists($key,$this->data)){
            return $this->data[$key];
        }else{
            return null;
        }
    }

//	
}